@import '@/styles/utils.scss';
@import '@/styles/colors.scss';
@import '@/styles/sizes.scss';

.categorybar {
  background-color: white;

  :global(.categorybar__overlay) {
    left: px2rem(0) !important;
    top: px2rem(21) !important;

    & > div {
      display: flex;
      width: px2rem($contentMaxWidth);
      max-width: px2rem($contentMaxWidth);
      overflow: auto;
      background-color: white;
      border: 1px solid $borderGrey;
      padding: px2rem(22);
    }
  }

  .content {
    position: relative;
    display: flex;
    align-items: center;

    .list {
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: space-around;
      list-style: none;
      margin: 0;
      padding: 0;

      .list__item {
        color: black;
        font-size: px2rem(14);
        position: relative;
        margin: 0 px2rem(10);
        padding-bottom: px2rem(7);

        a {
          color: black;
        }

        &:hover::after {
          position: absolute;
          bottom: 0;
          left: 0;
          content: '';
          width: 100%;
          height: 3px;
          border-bottom: 3px solid $mainGold;
        }
      }

      .list__item_active::after {
        position: absolute;
        bottom: 0;
        left: 0;
        content: '';
        width: 100%;
        height: 3px;
        border-bottom: 3px solid $mainGold;
      }
    }
  }
}

.categorybar_fixed {
  :global(.categorybar__overlay) {
    left: px2rem(0) !important;
    top: px2rem(39) !important;
  }

  .content {
    .list {
      .list__item {
        margin-top: 7px;
        padding-bottom: px2rem(18) !important;

        &:last-child {
          margin-right: px2rem(50);
        }
      }
    }
  }
}
